<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String basePath = request.getScheme() + "://" + request.getServerName() + ":" 
	+ request.getServerPort() + request.getContextPath() + "/";
%>
    
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>录入出勤信息</title>
</head>
<body>
<%@ include file="../header.jsp" %>
<form action="attendance.do?action=add" method="post">
 
<h1>添加出勤信息</h1>
	          缺勤时间<input type="date" name="time" placeholder="请输入缺勤时间"><br>
		员工号<input type="text" name="staffId" placeholder="请输入员工号"><br>
		缺勤原因：<select name="type">
    <option value="0">事假</option>
    <option value="1">调休</option>
    <option value="2">病假</option>
    <option value="3">迟到</option>
    <option value="4">早退</option>
    <option value="5">矿工</option>
    <option value="6">带薪年假</option>  
   </select><br>
	<!-- 	请假原因<input type="text" name="type" placeholder="请输入序号"><br>
		<td>0-6:事假、调休、病假、迟到、早退、旷工、带薪年假</td><br> -->
		<input type="submit" value="录入">
		<div style="color: red">${error }</div>
</form>
</body>
</html>